package com.sicau.controller;


import com.sicau.entity.pojo.vo.ResultVO;
import com.sicau.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 测试controller
 * @author ttxxi
 */
@Controller

public class TestController{
    @Autowired
    private TestService testService;


    public ResultVO test(HttpServletResponse response, HttpServletRequest request){

        String token = "emmm";

        System.err.println("url:" + request.getRequestURL().toString());

        System.out.println("123");
        response.setHeader("token",token);

        return new ResultVO(-1, "没有权限");
    }


//
//    @RequestMapping("/test")
//    public String pathTest(ModelMap model){
//        model.addAttribute("message","I am zhangxing");
//        return "index";
//    }


}
